'I found the original program on an F1 source disk. I don't know whether
'it was the programs fault or just that I'm useless at morse code but I
'couldn't get it to work at all. The idea is that you tap out the message
'on the mouse key. I don't think it will ever replace the keyboard but
'after some reprogramming it is at least possible to send a HELLO message
'(.... . .-.. .-.. ---)
'with the original this comes out as ZOGOD or something.
'
Dim MORSE$(36)
For LOP=1 To 36
Read MORSE$(LOP)
Next LOP
While Mouse Key=0 : Wend
Do
TIME=0 : While Mouse Key=1 : Inc TIME : Wend
CHECK=0 : Repeat : Inc CHECK : Until Mouse Key=1 or CHECK>700
If TIME<800
WORD$=WORD$+"."
Else
WORD$=WORD$+"-"
End If
If CHECK>700
For LOP=1 To 36
If WORD$=MORSE$(LOP)
Print Chr$(64+LOP); : Exit
End If
Next
WORD$=""
CHECK=0 : Repeat : Inc CHECK : Until Mouse Key=1
If CHECK>3000 : Print " "; : End If
End If
Loop
Data ".-","-...","-.-.","-..",".","..-","--","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--..","-----",".----","..---","...--","....-",".....","-....","--...","---..","----."
' a b c d e f g h i j k l m n o p q r s t u v w x y z